package com.解释器模式;

/**
 * @author Fang Ruichuan
 * @date 2022-12-22 20:00
 */
public class NumNonterminalExpression implements IExpression {

    private int value;

    public NumNonterminalExpression(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }
}
